package com.utils;

import java.io.Serializable;

/**   
* @Title: JsonResult.java 
* @Package com.utils 
* @author 孙梦楠 
* @date 2017年7月14日 上午8:58:08 
* @version V1.0.0   
*/


@SuppressWarnings("serial")
public class JsonResult<T> implements Serializable {
	
	
	private int state;
	private String message = "";
	private T data;

	public JsonResult(int state, String message, T data) {
		super();
		this.state = state;
		this.message = message;
		this.data = data;
	}
	

	
	
	@Override
	public String toString() {
		return "JsonResult [state=" + state + ", message=" + message + ", data=" + data + "]";
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	
	
}

